package com.hdit.guimei.service.impl;

import com.hdit.guimei.domain.AllCollection;
import com.hdit.guimei.mapper.CollectionMapper;
import com.hdit.guimei.service.AllCollectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @基本功能:
 * @ClassName: AllCollectionServiceImpl
 * @Description: TODO
 * @Author: 李嘉明
 * @Date: 2021/2/25 16:19
 * @Version 1.0
 */
@Service
public class AllCollectionServiceImpl implements AllCollectionService {
    @Autowired
    private CollectionMapper collectionMapper;

    @Override
    public List<AllCollection> findAllCollection() {
        return collectionMapper.findAllCollection();
    }

    @Override
    public int delCollection(int id) {
        return collectionMapper.delCollection(id);
    }
}
